package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CHonorDao;
import gov.ccswj.modules.ccbusiness.entity.CHonorEntity;
import gov.ccswj.modules.ccbusiness.service.CHonorService;



@Service("cHonorService")
public class CHonorServiceImpl implements CHonorService {
	@Autowired
	private CHonorDao cHonorDao;
	
	@Override
	public CHonorEntity queryObject(Integer id){
		return cHonorDao.queryObject(id);
	}
	
	@Override
	public List<CHonorEntity> queryList(Map<String, Object> map){
		return cHonorDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cHonorDao.queryTotal(map);
	}
	
	@Override
	public void save(CHonorEntity cHonor){
		cHonorDao.save(cHonor);
	}
	
	@Override
	public void update(CHonorEntity cHonor){
		cHonorDao.update(cHonor);
	}
	
	@Override
	public void delete(Integer id){
		cHonorDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cHonorDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cHonorDao.delete(entname);
		
	}
}
